package com.cyl.manager.pms.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import com.sincere.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 品牌管理
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pms_brand")
public class Brand {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "`name`")
    @ApiModelProperty("品牌名称")
    @Excel(name = "品牌名称")
    private String name;

    @TableField(value = "sort")
    @Excel(name = "排序字段")
    @ApiModelProperty("排序字段")
    private Integer sort;

    @TableField(value = "show_status")
    @ApiModelProperty("展示状态")
    private Integer showStatus;

    /**
     * 品牌logo
     */
    @TableField(value = "logo")
    @ApiModelProperty(name = "品牌logo")
    @Excel(name = "品牌logo")
    private String logo;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 删除标志 0删除 1 未删除
     */
    @TableField(value = "deleted")
    @TableLogic
    private Boolean deleted;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_SORT = "sort";

    public static final String COL_SHOW_STATUS = "show_status";

    public static final String COL_LOGO = "logo";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_BY = "update_by";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DELETED = "deleted";
}